//window.onload = function(){
//	// alert(window.innerHeight)
//	var windowHeight = window.innerHeight;
//	var opt = document.getElementById('mainPlace');
//	var heightContent = windowHeight - 116 ;
//	opt.style.minHeight = heightContent +"px";
//	// alert(opt.style.height)
//}
window.onload = function(){
	var windowHeight = window.getHeight();
	var opt = document.getElementById('mainPlace');
	if(opt == null){
		return;
	}else{
		if(opt==undefined){
			//无头页面的fit
			var opt = document.getElementById('mainPlace1');
			var heightContent = windowHeight - 57 ;
			opt.style.minHeight = heightContent +"px";
		}else{
			var heightContent = windowHeight - 116 ;
			opt.style.minHeight = heightContent +"px";
		}
	}
	
};
window.getHeight= function(){  
    if(window.innerHeight!= undefined){  
        return window.innerHeight;  
    }  
    else{  
        var B= document.body, D= document.documentElement;  
        return Math.min(D.clientHeight, B.clientHeight);  
    }  
};

